import { createSlice } from "@reduxjs/toolkit";
/**
 * 文章状态管理器
 */
export const layoutSlice = createSlice({
  name: "layout",
  initialState: {
    isCollapseMenu:false,
  },
  reducers: {
    changeLayout(state){
       state.isCollapseMenu = !state.isCollapseMenu
    }
  },
});
const { changeLayout } = layoutSlice.actions;
export {changeLayout}
export default layoutSlice.reducer;